package com.xgst.land.activity.check

import com.blankj.utilcode.util.LogUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xgst.land.R
import com.xgst.land.bean.LandUIDBean

class PDErrorLocationLandAdapter : BaseQuickAdapter<LandUIDBean,BaseViewHolder>(R.layout.item_error_layout){
    override fun convert(holder: BaseViewHolder, item: LandUIDBean) {
        if(InventoryScanLandActivity.mUidMap.containsKey(item.newUid)){
            val location = InventoryScanLandActivity.mUidMap[item.newUid]?.originalLocation
            val name = "孔位【${item.originalLocation}】当前识别到的样本为：${item.name}，该样本应位于孔位：$location"
            holder.setText(R.id.tvName,name)
        }
    }
}
